package com.xoa.dao.document;

import com.xoa.model.document.Document;
import com.xoa.model.document.DocumentModelWithBLOBs;
import com.xoa.model.document.DocumentWithBLOBs;

import java.util.List;

public interface DocumentMapper {
    static void updateDocumentAttach(int runId) {
    }

    int deleteByPrimaryKey(DocumentModelWithBLOBs id);

    int insert(DocumentModelWithBLOBs record);

    int insertSelective(DocumentModelWithBLOBs record);

    DocumentModelWithBLOBs selectByPrimaryKey(DocumentModelWithBLOBs id);

    int updateByPrimaryKeySelective(DocumentModelWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(DocumentModelWithBLOBs record);

    int updateByPrimaryKey(DocumentModelWithBLOBs record);

	List<DocumentModelWithBLOBs> selectDocAll(DocumentModelWithBLOBs document);

    DocumentWithBLOBs selectByRunID(String runId);

    Document selectByRunIDs(String runId);


    int delPDF(Integer runId);

    DocumentModelWithBLOBs selectById(Integer id);
}